<include file="../header" />
<body class="J_scroll_fixed">
    
    <script>

        $(document).ready(function() {
            
            $('button#send').click(function () {

                var coachId = $('input[name=coachId]').val();
                var clock = $('input[name=clock]').val();
                var day = $('input[name=day]').val();
              
                if(coachId == null || coachId == 0 ) {
                    layer.msg('教练信息不能为空!');
                    return false;
                }
                if(day == null || day == '' ) {
                    layer.msg('日期信息不能为空!');
                    return false;
                }
                if(clock == null || clock == '' ) {
                    layer.msg('时间信息不能为空!');
                    return false;
                }
                     $("form").submit();
            });
           
        });

    </script>
    
	<div class="wrap jj">
		<div class="common-form">
			<form method="post" class="form-horizontal J_ajaxForm" id="form" action="{:U('vip/bookCoachPost')}">
                            <input type='hidden' name='coachId' value='{$coach.coach_id}' />
                             <input type='hidden' name='courseId' value='{$courseId}' />
				<fieldset>
					<div class="control-group">
						<label class="control-label">日期:</label>
						<div class="controls">
                                                    <input type="text" name="day"  value="{$day}" readOnly='true'>
						</div>
					</div>
                                    <div class="control-group">
						<label class="control-label">时间:</label>
						<div class="controls">
                                                    <input  type="hidden" name="clock"  value="{$clock}" >
                                                    <input type="text" name=""  value="{$clock}:00--{$clock+1}:00" readOnly='true'>
						</div>
					</div>
                                    <div class="control-group">
						<label class="control-label">店铺:</label>
						<div class="controls">                                               
                                                    <input type="text" name=""  value="{$coach.shop_name}" readOnly='true'>
						</div>
					</div>
                                    <div class="control-group">
						<label class="control-label">教练:</label>
						<div class="controls">                                                 
                                                    <input type="text" name=""  value="{$coach.coach_name}" readOnly='true'>
						</div>
					</div>
					
                    
                                       
				</fieldset>
				<div class="form-actions">
					<button type="button" class="btn btn-primary btn_submit" id="send">预订</button>
				</div>
			</form>
		</div>
	</div>
	<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>